const cityCode = {
    "十堰市": { key: "shiyan", code: 420300 },
    "神农架林区": { key: "shennongjia", code: 429021 },
    "恩施土家族苗族自治州": { key: "enshi", code: 422800 },
    "宜昌市": { key: "yichang", code: 420500 },
    "襄阳市": { key: "xiangyang", code: 420600 },
    "荆门市": { key: "jinmen", code: 420800 },
    "荆州市": { key: "jinzhou", code: 421000 },
    "随州市": { key: "suizhou", code: 421300 },
    "孝感市": { key: "xiaogan", code: 420900 },
    "天门市": { key: "tianmen", code: 429006 },
    "潜江市": { key: "qianjiang", code: 429005 },
    "仙桃市": { key: "xiantao", code: 429004 },
    "武汉市": { key: "wuhan", code: 420100 },
    "黄冈市": { key: "huanggang", code: 421100 },
    "鄂州市": { key: "ezhou", code: 420700 },
    "咸宁市": { key: "xianning", code: 421200 },
    "黄石市": { key: "huangshi", code: 420200 },
}

export function getAreaPinYinByHanzi(name) {
    // 省怎么获取到
    // const path = `map/province/hubei/${zhong2pinyin[name]}.json`
    if (cityCode[name]) {
        return {
            code: cityCode[name].code,
            key: cityCode[name].key,
        }
    }else{
        return null
    }

}